package JMSRaceServer;

import java.sql.SQLException;
import java.util.List;

import JMSRaceServer.dao.JMSRaceServerDAO;

public class JMSServer {
	
	private JMSRaceServerDAO dao = new JMSRaceServerDAO();
	
	public JMSServer()
	{
		
	}
	
	public List<RaceDO> getRaces()
	{
		List<RaceDO> races = null;
		try
		{
			dao.connect();
			races = dao.getRaces();
			dao.disconnect();
		}
		catch (SQLException e)
		{
			e.printStackTrace();
		}
		return races;
	}

}
